package controller.admin;
import com.jfinal.aop.Inject;
import com.jfinal.kit.Kv;

import controller.admin.base.BaseAdminController;
import enums.RepaireType;
import service.RepaireService;

public class AdminRepaireController extends BaseAdminController {
	@Inject RepaireService repaireService ;

	public void list() {
	    Kv kv = getParamKv() ;
	    Integer pageNumber = getParaToInt("pageNumber", 1);
	    Integer pageSize = getParaToInt("pageSize", 10);
	    set("page", repaireService.getPage( kv , pageNumber, pageSize));
	    set("repaireTypeList", RepaireType.toList());
	    renderJson();
	}

	
}
